package modele;

import java.util.List;
import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
import javax.persistence.Embeddable;

import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * <p>Pojo mapping TABLE docligne</p>
 * <p></p>
 *
 * <p>Generated at Mon Feb 28 11:47:34 CET 2011</p>
 * @author Salto-db Generator v1.0.16 / EJB3
 * 
 */
@Entity
@Table(name = "docligne")
@SuppressWarnings("serial")
public class Docligne implements Serializable {

	/**
	 * Attribute idDocligne.
	 */
	private Integer idDocligne;
	
	/**
	 * Attribute docentete
	 */
	 private Docentete docentete;	
	 
	 private Integer idDocentete;
	/**
	 * Attribute article
	 */
	 private Article article;	

	 private Integer idArticle;
	/**
	 * Attribute dlDes.
	 */
	private String dlDes;
	
	/**
	 * Attribute dlQte.
	 */
	private Float dlQte;
	
	/**
	 * Attribute dlHt.
	 */
	private Float dlHt;
	
	/**
	 * Attribute dlRemise.
	 */
	private Float dlRemise;
	
	/**
	 * Attribute dlPutcc.
	 */
	private Float dlPutcc;
	
	/**
	 * Attribute dlTaxe.
	 */
	private Float dlTaxe;
	
	private Float dlTotal;
	
	
	/**
	 * Attribute utilisateur
	 */
	 private Utilisateur utilisateur;	
	 
	 private Integer idUtilisateur;
	 
	 private String dlRef;
	
	/**
	 * <p> 
	 * </p>
	 * @return idDocligne
	 */
	@Basic
	@Id
	@GeneratedValue
	@Column(name = "id_docligne")
		public Integer getIdDocligne() {
		return idDocligne;
	}

	/**
	 * @param idDocligne new value for idDocligne 
	 */
	public void setIdDocligne(Integer idDocligne) {
		this.idDocligne = idDocligne;
	}
	
	/**
	 * get docentete
	 */
	@ManyToOne
	@JsonIgnore
	@JoinColumn(name = "id_docentete",insertable=false ,updatable=false)
	public Docentete getDocentete() {
		return this.docentete;
	}
	
	/**
	 * set docentete
	 */
	public void setDocentete(Docentete docentete) {
		this.docentete = docentete;
	}

	/**
	 * get article
	 */
	@ManyToOne
	@JsonIgnore
	@JoinColumn(name = "id_article",insertable=false ,updatable=false)
	public Article getArticle() {
		return this.article;
	}
	
	/**
	 * set article
	 */
	public void setArticle(Article article) {
		this.article = article;
	}

	/**
	 * <p> 
	 * </p>
	 * @return dlDes
	 */
	@Basic
	@Column(name = "dl_des", length = 70)
		public String getDlDes() {
		return dlDes;
	}

	/**
	 * @param dlDes new value for dlDes 
	 */
	public void setDlDes(String dlDes) {
		this.dlDes = dlDes;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return dlQte
	 */
	@Basic
	@Column(name = "dl_qte")
		public Float getDlQte() {
		return dlQte;
	}

	/**
	 * @param dlQte new value for dlQte 
	 */
	public void setDlQte(Float dlQte) {
		this.dlQte = dlQte;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return dlHt
	 */
	@Basic
	@Column(name = "dl_ht")
		public Float getDlHt() {
		return dlHt;
	}

	/**
	 * @param dlHt new value for dlHt 
	 */
	public void setDlHt(Float dlHt) {
		this.dlHt = dlHt;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return dlRemise
	 */
	@Basic
	@Column(name = "dl_remise")
		public Float getDlRemise() {
		return dlRemise;
	}

	/**
	 * @param dlRemise new value for dlRemise 
	 */
	public void setDlRemise(Float dlRemise) {
		this.dlRemise = dlRemise;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return dlPutcc
	 */
	@Basic
	@Column(name = "dl_putcc")
		public Float getDlPutcc() {
		return dlPutcc;
	}

	/**
	 * @param dlPutcc new value for dlPutcc 
	 */
	public void setDlPutcc(Float dlPutcc) {
		this.dlPutcc = dlPutcc;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return dlTaxe
	 */
	@Basic
	@Column(name = "dl_taxe")
		public Float getDlTaxe() {
		return dlTaxe;
	}

	/**
	 * @param dlTaxe new value for dlTaxe 
	 */
	public void setDlTaxe(Float dlTaxe) {
		this.dlTaxe = dlTaxe;
	}
	
	/**
	 * get utilisateur
	 */
	@ManyToOne
	@JsonIgnore
	@JoinColumn(name = "id_utilisateur",insertable=false ,updatable=false)
	public Utilisateur getUtilisateur() {
		return this.utilisateur;
	}
	
	/**
	 * set utilisateur
	 */
	public void setUtilisateur(Utilisateur utilisateur) {
		this.utilisateur = utilisateur;
	}

	public void setIdDocentete(Integer idDocentete) {
		this.idDocentete = idDocentete;
	}

	@Basic
	@Column(name = "id_docentete")
	public Integer getIdDocentete() {
		return idDocentete;
	}

	public void setIdArticle(Integer idArticle) {
		this.idArticle = idArticle;
	}

	@Basic
	@Column(name = "id_article")
	public Integer getIdArticle() {
		return idArticle;
	}

	public void setIdUtilisateur(Integer idUtilisateur) {
		this.idUtilisateur = idUtilisateur;
	}

	@Basic
	@Column(name = "id_utilisateur")
	public Integer getIdUtilisateur() {
		return idUtilisateur;
	}

	public void setDlRef(String dlRef) {
		this.dlRef = dlRef;
	}

	@Basic
	@Column(name = "dl_ref")
	public String getDlRef() {
		return dlRef;
	}

	public void setDlTotal(Float dlTotal) {
		this.dlTotal = dlTotal;
	}

	@Basic
	@Column(name = "dl_total")
	public Float getDlTotal() {
		return dlTotal;
	}



}